package io.renren.modules.project.dao;

import io.renren.modules.base.entity.BaseWorkitemInfoEntity;
import io.renren.modules.project.entity.PojectTaskEntity;
import io.renren.modules.sys.dao.BaseDao;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 项目任务表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-10-16 15:02:36
 */
@Mapper
public interface PojectTaskDao extends BaseDao<PojectTaskEntity> {

    List<Map<String,Object>> queryMilepost(String pojectId);

    List<Map<String,Object>> queryMorkitem(List<PojectTaskEntity> pojectTaskEntity);

    List<PojectTaskEntity> queryTask(String pojectId);

    List<PojectTaskEntity> queryTaskList(String[] pojectId);
    List<PojectTaskEntity> queryTaskList1(String[] pojectId);

    void insertTask(PojectTaskEntity pojectTaskEntities);

    PojectTaskEntity queryTaskOrder(PojectTaskEntity pojectTaskEntity);

    void taskPreservation(List<PojectTaskEntity> pojectTaskEntity);

//    List<Map<String,Object>> queryDoingTaskList(Map<String,Object> map);

    // 经理待办任务列表
    List<Map<String,Object>> queryPmDoingTaskList(Map<String,Object> map);

    // 负责人待办任务列表
    List<Map<String,Object>> queryDutyDoingTaskList(Map<String,Object> map);

    // 查询某项目下任务总数
//    int queryTaskTotalNum(String projectId);

    // 通过项目id获取当前任务
    PojectTaskEntity queryCurrentTaskById(String projectId);

    PojectTaskEntity queryNotificationTaskById(String projectId);

    List<Map<String, Object>> getProjectTask(String projectId);

    List<Map<String, Object>> getProjectWorkitem(String projectId);

    void updateOrder(List<PojectTaskEntity> pojectTaskEntities);

    void projectAddTask(List<PojectTaskEntity> pojectTaskEntities);

    List<BaseWorkitemInfoEntity> queryPojectWorkitem(String taskId);

    Map<String,Object> queryReject(String taskId);
}
